package com.scap.dfs.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author SARUN
 * 
 * This interface data for CRUD for management table 
 * and  Can modify data
 */
@Controller
public interface CRUDInterface {
	
	/**
	 * @return ModelAndView
	 * this display data.
	 */
	@RequestMapping(value = "/view" , method=RequestMethod.POST)
	public ModelAndView view(HttpServletRequest request);
	
	/**
	 * @return
	 * This content add data into table.
	 */
	@RequestMapping(value = "/add" , method=RequestMethod.POST)
	public ModelAndView insert(HttpServletRequest request);
	
	/**
	 * 
	 * @return
	 * This update from  table.
	 */
	@RequestMapping(value = "/update" , method=RequestMethod.POST)
	public ModelAndView update(HttpServletRequest request);
	
	/**
	 * 
	 * @return
	 * This delete data from table.
	 */
	@RequestMapping(value = "/delete" , method=RequestMethod.POST)
	public ModelAndView delete(HttpServletRequest request);
	
	/**
	 * 
	 * @return
	 * this list data by  table  and pagination.
	 */
	@RequestMapping(value = "/index" , method=RequestMethod.POST)
	public ModelAndView index();
	
	
	public ModelAndView index(HttpServletRequest request);
	
	/**
	 * 
	 * @return
	 * This for form search data on by condition
	 */
	@RequestMapping(value = "/search" , method=RequestMethod.POST)
	public ModelAndView search(HttpServletRequest request);

	
	
}